package com.itheima.ioTest;

import java.io.File;
import java.io.IOException;

public class test_1 {
    public static void main(String[] args) throws IOException {
        //meothd();
        File file =new File("IO\\AAA");
        if(!file.exists()){
            file.mkdirs();
        }
        File newfile=new File(file,"a.txt");
        file.createNewFile();
    }

    public static void meothd() {
        File file=new File("D:\\");
        File[] files = file.listFiles();
        System.out.println(file.length());
        for (File file1 : files) {
            System.out.println(file1);
        }
    }
}
